// const KEY =  'E56BZ-LGZE3-HCK3G-RBYII-J7BYQ-CXFR6'
import config from "@/uitls/config"
const KEY = config.navigationKey
export const baseData = {
	fullname: "深圳市",
	id: "440300",
	location: {lat: 22.543527, lng: 114.057939},
	name: "深圳",
	pinyin: ["shen", "zhen"],
}

// 获取下级行政区划
export const getchildrenData = (id = 440300)=>{
	return new Promise((resolve, reject)=>{
		uni.request({
		  url: `https://apis.map.qq.com/ws/district/v1/getchildren?key=${KEY}&id=${id}`,  //仅为示例，并非真实的接口地址
		  header: {
		    'content-type': 'application/json' // 默认值
		  },
		  // complete(res){
			 //  console.log('res,==',res)
			  
		  // },
		  success (res) {
		    // console.log(res.data)
			resolve(res.data.result)
		  },
		  fail(err){
			  console.log(err)
		  }
		})
	})
	
}